<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	   <SCRIPT TYPE="text/javascript" SRC="../../drDesktop/js/DrDesktop_resources.js"></SCRIPT> 		
      <SCRIPT TYPE="text/javascript" SRC="../../drDesktop/js/jquery.js"></SCRIPT>
  	   <SCRIPT TYPE="text/javascript" SRC="../../drDesktop/js/DrDesktop_ventanas.js"></SCRIPT> 	
      <SCRIPT>

         $(function (){
            prepareButtons()
            drWindow.bindDesktopResize({handlerName:"onDesktopResize"})
            onDesktopResize()
         })

         function onDesktopResize()  {
            drWindow.setWidth({"width":(drWindow.getClientWidth())})
         }

         function prepareButtons()  {
            $(".btn").hover(function(){
               $(this).addClass("hover")
            }, function (){
               $(this).removeClass("hover").removeClass("push")
            }).mousedown(function(){
               $(this).addClass("push")
               window[$(this).attr("id")+"_mousedown"]()
            }).mouseup(function(){
               $(this).removeClass("push")
            })
            $("#btnClose2").hover(function(){
               $(this).removeClass("btnClose2").addClass("btnClose2Hover")
            }, function (){
               $(this).removeClass("btnClose2Hover").addClass("btnClose2")
            }).mousedown(btnClose2_mousedown)
         }

         function btnSaveClose_mousedown()   {
            drWindow.openApplication({application:"cerrarSesion"})
         }

         function btnClose_mousedown()   {
            drWindow.openApplication({application:"salirSinGuardar"})
         }

         function btnSave_mousedown()   {
            if (drCuadroConfirm( drResources.get({bundle:"skins",key:"sapSkin.txt1"}) , [drResources.get({bundle:"skins",key:"sapSkin.txt2"}),drResources.get({bundle:"skins",key:"sapSkin.txt3"})]))	
               drWindow.sessionSaveAndRestart()
         }

         function btnVD1_mousedown()   {
            drWindow.changeVirtualDesktop({"virtualDesktop":0})
            drWindow.getDesktopWindow().$("#fondo").css({backgroundColor:"#9cbdce"})
         }

         function btnVD2_mousedown()   {
            drWindow.changeVirtualDesktop({"virtualDesktop":1})
            drWindow.getDesktopWindow().$("#fondo").css({backgroundColor:"#a9d3a9"})
         }

         function btnVD3_mousedown()   {
            drWindow.changeVirtualDesktop({"virtualDesktop":2})
            drWindow.getDesktopWindow().$("#fondo").css({backgroundColor:"#f3e0aa"})
         }

         function btnHelp_mousedown()   {
            drWindow.openApplication({application:"helpExplorer"})
         }

         function btnConfig_mousedown()   {
            drWindow.openApplication({application:"drConfigPanel"})
         }

         function btnClose2_mousedown()   {
            drWindow.openApplication({application:"cerrarSesion"})
         }

      </SCRIPT>
      <STYLE>
         html,body{padding:0px; margin:0px;}

         #Head{width:100%; height:67px; background-image:url(img/SAPHead2.gif)}
         #Head1{position:absolute;left:0px;top:0px;width:21px;height:67px;background-image:url(img/SAPHead1.gif)}
         #Head3{position:absolute;right:0px;top:0px;width:130px;height:67px;background-image:url(img/SAPHead3.gif)}

         #botoneraIzq{position:absolute;left:25px;top:43px;height:19px; overflow:hidden;}
         .btn{float:left;width:17px;height:17px;border:1px solid #bdbdbd; margin-left:4px;cursor:pointer}
         .hover{border:1px solid #868686;border-top:1px solid white; border-left:1px solid white; }
         .push{border:1px solid #868686;border-bottom:1px solid white; border-right:1px solid white; }
         .sepBtn{float:left;width:2px;height:17px;background-image:url(img/sepBtn.gif); margin-left:9px;margin-right:6px;}
         #btnSaveClose{background-image:url(img/btnSaveClose.gif)}
         #btnClose{background-image:url(img/btnClose.gif);}
         #btnSave{background-image:url(img/btnSave.gif)}
         #btnVD1{background-image:url(img/btnVD1.gif)}
         #btnVD2{background-image:url(img/btnVD2.gif)}
         #btnVD3{background-image:url(img/btnVD3.gif)}
         #btnHelp{background-image:url(img/btnHelp.gif)}
         #btnConfig{background-image:url(img/btnConfig.gif)}
         
         #botoneraDcha{position:absolute;right:131px;top:5px;height:11px; overflow:hidden;}
         .btn2{float:left;width:11px;height:11px;margin-left:5px;cursor:pointer}
         #btnMinimize{background-image:url(img/btnMinimize.gif)}
         #btnMaximize{background-image:url(img/btnMaximize.gif)}
         .btnClose2{background-image:url(img/btnClose2.gif)}
         .btnClose2Hover{background-image:url(img/btnClose2Hover.gif)}

      </STYLE>
   </head>
   <body>
      <div id="Head">
         <div id="Head1"></div>
         <div id="Head3"></div>
         <div id="botoneraIzq">
            <div id="btnSaveClose" class="btn"></div>
            <div id="btnClose" class="btn"></div>
            <div id="btnSave" class="btn"></div>
            <div class="sepBtn"></div>
            <div id="btnVD1" class="btn"></div>
            <div id="btnVD2" class="btn"></div>
            <div id="btnVD3" class="btn"></div>
            <div class="sepBtn"></div>
            <div id="btnHelp" class="btn"></div>
            <div id="btnConfig" class="btn"></div>
         </div>
      </div>
         <div id="botoneraDcha">
            <div id="btnMinimize" class="btn2"></div>
            <div id="btnMaximize" class="btn2"></div>
            <div id="btnClose2" class="btn2 btnClose2"></div>
         </div>
   </body>
</html>